
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
//引入建立好的router

const app = createApp(App)


app.use(router)     //3.use router
app.mount(`#app`)     //要先用router再挂载   use在前 挂载在后
